package com.one.blocks.mvc.controller.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Set;

/**
 * @author <a href="mailto:idler41@163.con">linfuxin</a> created on 2024-01-04 14:47:10
 */
@ApiModel(value = "通用授权")
@Data
public class GrantVo<I, K> {

    @ApiModelProperty(value = "授权关联ID集合")
    private Set<K> relatedIds;

    @ApiModelProperty(value = "被授权id")
    @NotNull
    private I grantId;
}
